import Vue from "vue";
import VueRouter from "vue-router";
// import Home from "../views/Home.vue";
import Nav from "../components/Nav";


Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    // component: Home
    component: () =>
            import(/* webpackChunkName: "about" */ "../views/Home.vue")
  },
  {
    path: "/About",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue")
  },
  {
    path: "/About2",
    name: "About2",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
            import(/* webpackChunkName: "about" */ "../views/About2.vue")
  },
  {
    path: "/sub/About2",
    name: "AboutSub2",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
            import(/* webpackChunkName: "about" */ "../views/About2.vue")
  },

  {
    path: "/About3",
    name: "About3",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
        import(/* webpackChunkName: "about" */ "../views/About3.vue")
  },
  {
    path: "/about4",
    name: "About4",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
            import(/* webpackChunkName: "about" */ "../views/About4.vue")
  },
  {
    path: "/about5",
    name: "About5",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
            import(/* webpackChunkName: "about" */ "../views/About5.vue")
  },
  {
    path: "/About6",
    name: "About6",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
            import(/* webpackChunkName: "about" */ "../views/About6.vue")
  },
  {
    path: "/About7",
    name: "About7",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
            import(/* webpackChunkName: "about" */ "../views/About7.vue")
  },
  {
    path: '/Navi',
    name: 'Navi',
    component: Nav
  }
];

const router = new VueRouter({
  // mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
